// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
/*function select_template(template_id) {
  $('record[template]').value = template_id;
  $('template_preview').src = $('browse_template_preview_'+template_id).src;
}

$$('.select_preview').each( function(element) {
    element.observe('click', clickBundle);
})*/

function clickBundle(evt) {
  var elem = evt.element();
  elem.previous().click();
}
//:onclick => "$('record[template][id]_' + #{template.id}).click()"),
